package com.yzh.grainmall.seckill.feign;

import com.yzh.grainmall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author yuzhen
 * @create 2021-11-14 20:43
 */
@FeignClient("grainmall-product")
public interface ProductFeignService {


    /**
     * 信息（原）
     * 远程服务gulimall-seckill用了一次
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    R getSkuInfo(@PathVariable("skuId") Long skuId);

}
